﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarClass
{
    class Car
    {
        public Car(String number)
        {
            EngineNumber = number;
        }

        public String EngineNumber { get; protected set; }

        public void Kolesa()
        {
            Console.Write("задайте размер колеса = ");

            Int32 radius = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine();

            Wheel[] kolesa = new Wheel[4];

            for (Int32 i = 0; i < kolesa.Length; i++)
            {
                kolesa[i] = new Wheel(radius);
            }

            foreach (var i in kolesa)
            {
                Console.WriteLine(i.ToString());
            }
            Console.ReadLine();
        }

        public void Drive()
        {
            Console.WriteLine("машина едет");
        }
    }
}
